// @ts-ignore
/* eslint-disable */
import { api } from "@/utils/api";

/** 新增环保-环境评估报告管理表数据 POST /environmentalAssessment/add */
export async function environmentalAssessmentAdd(
  body: BIZAPI.EnvironmentalAssessmentCreateReq,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResult>;

export async function environmentalAssessmentAdd(
  body: BIZAPI.EnvironmentalAssessmentCreateReq,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResult>>;

export async function environmentalAssessmentAdd(
  body: BIZAPI.EnvironmentalAssessmentCreateReq,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResult>;

export async function environmentalAssessmentAdd(
  body: BIZAPI.EnvironmentalAssessmentCreateReq,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResult>(`/app/environmentalAssessment/add`, {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
      tupleResponse: true,
    });
  }

  return api<BIZAPI.IResult>(`/app/environmentalAssessment/add`, {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** 删除环保-环境评估报告管理表数据 POST /environmentalAssessment/delete */
export async function environmentalAssessmentDelete(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResult>;

export async function environmentalAssessmentDelete(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResult>>;

export async function environmentalAssessmentDelete(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResult>;

export async function environmentalAssessmentDelete(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResult>(`/app/environmentalAssessment/delete`, {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
      tupleResponse: true,
    });
  }

  return api<BIZAPI.IResult>(`/app/environmentalAssessment/delete`, {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** 获取环保-环境评估报告管理表数据 POST /environmentalAssessment/get */
export async function environmentalAssessmentGet(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResultEnvironmentalAssessmentEntity>;

export async function environmentalAssessmentGet(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResultEnvironmentalAssessmentEntity>>;

export async function environmentalAssessmentGet(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResultEnvironmentalAssessmentEntity>;

export async function environmentalAssessmentGet(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResultEnvironmentalAssessmentEntity>(
      `/app/environmentalAssessment/get`,
      {
        method: "POST",
        headers: {
          "Content-Type": "application/json",
        },
        data: body,
        ...(options || {}),
        tupleResponse: true,
      }
    );
  }

  return api<BIZAPI.IResultEnvironmentalAssessmentEntity>(
    `/app/environmentalAssessment/get`,
    {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** 获取环保-环境评估报告管理表VO数据 POST /environmentalAssessment/getVo */
export async function environmentalAssessmentGetVo(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResultEnvironmentalAssessmentResp>;

export async function environmentalAssessmentGetVo(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResultEnvironmentalAssessmentResp>>;

export async function environmentalAssessmentGetVo(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResultEnvironmentalAssessmentResp>;

export async function environmentalAssessmentGetVo(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResultEnvironmentalAssessmentResp>(
      `/app/environmentalAssessment/getVo`,
      {
        method: "POST",
        headers: {
          "Content-Type": "application/json",
        },
        data: body,
        ...(options || {}),
        tupleResponse: true,
      }
    );
  }

  return api<BIZAPI.IResultEnvironmentalAssessmentResp>(
    `/app/environmentalAssessment/getVo`,
    {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** 获取环保-环境评估报告管理表分页数据 POST /environmentalAssessment/page */
export async function environmentalAssessmentPage(
  body: BIZAPI.EnvironmentalAssessmentQuery,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResultIPageEnvironmentalAssessmentEntity>;

export async function environmentalAssessmentPage(
  body: BIZAPI.EnvironmentalAssessmentQuery,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResultIPageEnvironmentalAssessmentEntity>>;

export async function environmentalAssessmentPage(
  body: BIZAPI.EnvironmentalAssessmentQuery,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResultIPageEnvironmentalAssessmentEntity>;

export async function environmentalAssessmentPage(
  body: BIZAPI.EnvironmentalAssessmentQuery,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResultIPageEnvironmentalAssessmentEntity>(
      `/app/environmentalAssessment/page`,
      {
        method: "POST",
        headers: {
          "Content-Type": "application/json",
        },
        data: body,
        ...(options || {}),
        tupleResponse: true,
      }
    );
  }

  return api<BIZAPI.IResultIPageEnvironmentalAssessmentEntity>(
    `/app/environmentalAssessment/page`,
    {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** 更新环保-环境评估报告管理表数据 POST /environmentalAssessment/update */
export async function environmentalAssessmentUpdate(
  body: BIZAPI.EnvironmentalAssessmentUpdateReq,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResult>;

export async function environmentalAssessmentUpdate(
  body: BIZAPI.EnvironmentalAssessmentUpdateReq,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResult>>;

export async function environmentalAssessmentUpdate(
  body: BIZAPI.EnvironmentalAssessmentUpdateReq,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResult>;

export async function environmentalAssessmentUpdate(
  body: BIZAPI.EnvironmentalAssessmentUpdateReq,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResult>(`/app/environmentalAssessment/update`, {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
      tupleResponse: true,
    });
  }

  return api<BIZAPI.IResult>(`/app/environmentalAssessment/update`, {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** 获取环保-环境评估报告管理表VO分页数据 POST /environmentalAssessment/voPage */
export async function environmentalAssessmentVoPage(
  body: BIZAPI.EnvironmentalAssessmentQuery,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResultIPageEnvironmentalAssessmentResp>;

export async function environmentalAssessmentVoPage(
  body: BIZAPI.EnvironmentalAssessmentQuery,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResultIPageEnvironmentalAssessmentResp>>;

export async function environmentalAssessmentVoPage(
  body: BIZAPI.EnvironmentalAssessmentQuery,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResultIPageEnvironmentalAssessmentResp>;

export async function environmentalAssessmentVoPage(
  body: BIZAPI.EnvironmentalAssessmentQuery,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResultIPageEnvironmentalAssessmentResp>(
      `/app/environmentalAssessment/voPage`,
      {
        method: "POST",
        headers: {
          "Content-Type": "application/json",
        },
        data: body,
        ...(options || {}),
        tupleResponse: true,
      }
    );
  }

  return api<BIZAPI.IResultIPageEnvironmentalAssessmentResp>(
    `/app/environmentalAssessment/voPage`,
    {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
    }
  );
}
